package com.ruoyi.interview.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 评论对象 tb_comment
 * 
 * @author ruoyi
 * @date 2024-05-27
 */
public class TbComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    @Excel(name = "评论id")
    private Long id;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentContent;

    /** 面试id */
    @Excel(name = "面试id")
    private Long interviewId;

    /** 评论人 */
    @Excel(name = "评论人")
    private Long userId;
    private String stuName;



    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setInterviewId(Long interviewId) 
    {
        this.interviewId = interviewId;
    }

    public Long getInterviewId() 
    {
        return interviewId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commentContent", getCommentContent())
            .append("interviewId", getInterviewId())
            .append("userId", getUserId())
            .append("stuName", getStuName())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
